package com.cennavi.bigdata.baotou.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * Created by cennavi on 2018/4/11.
 */
public interface CrontabDao {

    List<JSONObject> getRoadIdById();

    boolean insertRoadIndexTravelInfo(List<JSONObject> list) throws Exception;

    boolean deleteHistoryInfo(String date);

    /**
     * 从oracle获取数据
     * @param start
     * @param end
     * @return
     */
    List<JSONObject> getInfoFromOracle(String start,String end);

    void saveIntoRoadDayIndex(JSONArray road);

    void saveIntoAreaDayIndex(JSONArray area);

    void deleteDayIndexByTime(String time);

    void saveIntoRoadHourIndex(JSONArray roadmap);

    void saveIntoAreaHourIndex(JSONArray roadmap);

    void deleteHourIndexByTime(String time);

    int saveRoadPredictBaseWork(List<Map<String,Object>> workList, String type);

    void saveQuarter(JSONObject jsonObject);

    void deleteRoadPredictHis();
}
